<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 150px;
            height: 20px;
            background-color: gray;
            overflow: hidden; 
        }
        .box1{
            width: 150px;
            height: 20px;
            background-color: #000;
            position: relative;
            animation: move 3s infinite running;
        }
        @keyframes move{
            0%{
               transform: translateX(-150px); 
            }
            100%{
                transform: translateX(0px);
            }
        }
        .box2{
            width: 150px;
            height: 20px;
            background-color: white;
            border-radius: 10px;
        }
        .box3{
            width: 150px;
            height: 20px;
            background: linear-gradient(90deg,pink ,rgb(0, 119, 255));
            border-radius: 10px;
            animation: move 3s infinite running;
        }
        .box4{
            width: 150px;
            height: 20px;
            border-radius: 10px;
            background:repeating-linear-gradient(45deg,red 0 10px,orange 0 20px)0/0% no-repeat, repeating-linear-gradient(45deg,gray 0 10px,rgb(199, 198, 198) 0 20px)0/100%;
            animation: fly 3s infinite linear;
        }
        @keyframes fly{
            100%{
                background-size: 100%;
            }
        }
        .box5{
            width: 150px;
            height: 20px;
            background:repeating-linear-gradient(90deg,#000 0 10px,white 0 20px)0/0% no-repeat, repeating-linear-gradient(90deg,gray 0 10px,rgb(199, 198, 198) 0 20px)0/100%;
            animation: fly 3s infinite linear;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="box1"></div>
    </div>
    <div class="box2">
        <div class="box3"></div>
    </div>
    <div class="box4"></div>
    <div class="box5"></div>
</body>
</html>